package org.ricks.condition2.event;


public class LevelCompleteEvent implements PlayerAwareEvent {
    private final String playerId;
    private final int level;
    private final boolean isPerfect;

    public LevelCompleteEvent(String playerId, int level, boolean isPerfect) {
        this.playerId = playerId;
        this.level = level;
        this.isPerfect = isPerfect;
    }

    @Override
    public String getPlayerId() { return playerId; }

    public boolean isPerfect() { return isPerfect; }

    public int getLevel() {
        return level;
    }
}
